﻿@model IEnumerable<VR_MVC.Models.VoterMergeFile>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.COUNTY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LAST_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FIRST_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MIDDLE_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NAME_SUFFIX)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VOTER_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PRECINCT_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HOUSE_NUM)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HOUSE_SUFFIX)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PRE_DIR)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STREET_NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STREET_TYPE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.POST_DIR)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UNIT_TYPE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UNIT_NUM)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ADDRESS_NON_STD)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RESIDENTIAL_ADDRESS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RESIDENTIAL_CITY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RESIDENTIAL_STATE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RESIDENTIAL_ZIP_CODE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RESIDENTIAL_ZIP_PLUS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EFFECTIVE_DATE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.REGISTRATION_DATE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STATUS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STATUS_REASON)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BIRTH_YEAR)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GENDER)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PRECINCT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PARTY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_ADDRESS_1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_ADDRESS_2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_ADDRESS_3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_CITY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_STATE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_ZIP_CODE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_ZIP_PLUS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILING_COUNTRY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VoterMergeFileDetail.VoterFileID)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.COUNTY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LAST_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FIRST_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MIDDLE_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NAME_SUFFIX)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VOTER_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PRECINCT_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HOUSE_NUM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HOUSE_SUFFIX)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PRE_DIR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STREET_NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STREET_TYPE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.POST_DIR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UNIT_TYPE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UNIT_NUM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ADDRESS_NON_STD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RESIDENTIAL_ADDRESS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RESIDENTIAL_CITY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RESIDENTIAL_STATE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RESIDENTIAL_ZIP_CODE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RESIDENTIAL_ZIP_PLUS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EFFECTIVE_DATE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.REGISTRATION_DATE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STATUS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STATUS_REASON)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BIRTH_YEAR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GENDER)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PRECINCT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PARTY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_ADDRESS_1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_ADDRESS_2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_ADDRESS_3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_CITY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_STATE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_ZIP_CODE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_ZIP_PLUS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILING_COUNTRY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VoterMergeFileDetail.VoterFileID)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
